<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<style type="text/css">
.ui-dialog-titlebar-close {
	display: none;
}
</style>
		<script type="text/javascript" src="/hrms/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="/hrms/js/jquery.container.js"></script>
		<script type="text/javascript" src="/hrms/js/common.js"></script>
		<script type="text/javascript" src="/hrms/js/jsloader.js"></script>
		<title>系统登录</title>
		<script type="text/javascript">
	$(document).ready( function() {

		$("#tform").validationEngine({
			ajaxFormValidation: true
			});
		$("#dialog").dialog( "option", "buttons",{"登录":function(){
			var loginname=document.getElementById("loginname").value;
			var password=document.getElementById("password").value;
			$.ajax({
			url:appPath+"webservice/resources/session/login",
			data:"loginname="+loginname+"&password="+password,
			success:function(data){
				if(!data.validate){
					alert(data.info);
				}
			}
			});
		}} );
			
	});
	
</script>
	</head>

	<body bgcolor="#dfdfdf">

		<ui:dialog id="dialog" title="系统登录" height="240" width="400"
			position="['top']" modal=true>
			<form id="tform" action="/hrms/webservice/resources/session/login" method="post">
				<table>
					<tr>
						<td>
							用户名:
						</td>
						<td>
							<input type="text" id="loginname" name="userPO.loginname"
								class="validate[required] text-input" maxlength="128"></input>
							<font color="red">*</font>
						</td>
					</tr>
					<tr>
						<td>
							密&nbsp;&nbsp;&nbsp;&nbsp;码:
						</td>
						<td>
							<input type="password" name="userPO.password" id="password"
								class="validate[required] text-input" maxlength="256" />
							<font color="red">*</font>
						</td>
					</tr>
				</table>
			</form>
		</ui:dialog>

	</body>

</html>




